Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

androidApp/src/fdroid/kotlin/org/meshtastic/app/map/MapViewModel.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 2.55 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.app.map

Tff7b72import T7ee787androidx.lifecycle.SavedStateHandle
Tff7b72import T7ee787kotlinx.coroutines.flow.MutableStateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.StateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.asStateFlow
Tff7b72import T7ee787org.koin.core.annotation.KoinViewModel
Tff7b72import T7ee787org.meshtastic.core.common.BuildConfigProvider
Tff7b72import T7ee787org.meshtastic.core.repository.MapPrefs
Tff7b72import T7ee787org.meshtastic.core.repository.NodeRepository
Tff7b72import T7ee787org.meshtastic.core.repository.PacketRepository
Tff7b72import T7ee787org.meshtastic.core.repository.RadioConfigRepository
Tff7b72import T7ee787org.meshtastic.core.repository.RadioController
Tff7b72import T7ee787org.meshtastic.core.ui.viewmodel.stateInWhileSubscribed
Tff7b72import T7ee787org.meshtastic.feature.map.BaseMapViewModel
Tff7b72import T7ee787org.meshtastic.proto.LocalConfig

Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffLongParameterListTa5d6ff"Tb4b4b4)
Tf0883e@KoinViewModel
Tff7b72class T56d364MapViewModelTb4b4b4(
Te6edf3mapPrefsTb4b4b4: Te6edf3MapPrefsTb4b4b4,
Te6edf3packetRepositoryTb4b4b4: Te6edf3PacketRepositoryTb4b4b4,
Te6edf3nodeRepositoryTb4b4b4: Te6edf3NodeRepositoryTb4b4b4,
Te6edf3radioControllerTb4b4b4: Te6edf3RadioControllerTb4b4b4,
Te6edf3radioConfigRepositoryTb4b4b4: Te6edf3RadioConfigRepositoryTb4b4b4,
Te6edf3buildConfigProviderTb4b4b4: Te6edf3BuildConfigProviderTb4b4b4,
Te6edf3savedStateHandleTb4b4b4: Te6edf3SavedStateHandleTb4b4b4,
Tb4b4b4) Tb4b4b4: Te6edf3BaseMapViewModelTb4b4b4(Te6edf3mapPrefsTb4b4b4, Te6edf3nodeRepositoryTb4b4b4, Te6edf3packetRepositoryTb4b4b4, Te6edf3radioControllerTb4b4b4, Te6edf3radioConfigRepositoryTb4b4b4) Tb4b4b4{

Tff7b72private Tff7b72val Te6edf3_selectedWaypointId Tff7b72= Te6edf3MutableStateFlowTb4b4b4(Te6edf3savedStateHandleTb4b4b4.Te6edf3getTff7b72<Tffa657IntTff7b72>Tb4b4b4(Ta5d6ff"Ta5d6ffwaypointIdTa5d6ff"Tb4b4b4)Tb4b4b4)
Tff7b72val Te6edf3selectedWaypointIdTb4b4b4: Te6edf3StateFlowTff7b72<Tffa657Int?Tff7b72> Tff7b72= Te6edf3_selectedWaypointIdTb4b4b4.Te6edf3asStateFlowTb4b4b4(Tb4b4b4)

Tff7b72fun Td2a8ffsetWaypointIdTb4b4b4(Te6edf3idTb4b4b4: Tffa657Int?Tb4b4b4) Tb4b4b4{
Tff7b72if Tb4b4b4(Te6edf3_selectedWaypointIdTb4b4b4.Te6edf3value Tff7b72!Tff7b72= Te6edf3idTb4b4b4) Tb4b4b4{
Te6edf3_selectedWaypointIdTb4b4b4.Te6edf3value Tff7b72= Te6edf3id
Tb4b4b4}
Tb4b4b4}

Tff7b72var Te6edf3mapStyleIdTb4b4b4: Tffa657Int
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3mapPrefsTb4b4b4.Te6edf3mapStyleTb4b4b4.Te6edf3value
Tff7b72setTb4b4b4(Te6edf3valueTb4b4b4) Tb4b4b4{
Te6edf3mapPrefsTb4b4b4.Te6edf3setMapStyleTb4b4b4(Te6edf3valueTb4b4b4)
Tb4b4b4}

Tff7b72val Te6edf3localConfig Tff7b72= Te6edf3radioConfigRepositoryTb4b4b4.Te6edf3localConfigFlowTb4b4b4.Te6edf3stateInWhileSubscribedTb4b4b4(Te6edf3initialValue Tff7b72= Te6edf3LocalConfigTb4b4b4(Tb4b4b4)Tb4b4b4)

Tff7b72val Te6edf3config
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3localConfigTb4b4b4.Te6edf3value

Tff7b72val Te6edf3applicationId Tff7b72= Te6edf3buildConfigProviderTb4b4b4.Te6edf3applicationId
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.09s